//1.state状态
const state = {
   book:{}
}

const mutations = {
   getBook(state , book){
        state.book = book;
   }

}

const actions = {}

const getters = {}

//5.导出且注册当前模块
export default {
    //注册模块使当前模块成为待命名的区域  vue.cart.xxx
    namespaced: true,
    state,
    mutations,
    actions,
    getters

}